package IC.AST;

public class AssignStatement extends Statement
{
	private Location _to;
	private Expression _what;
	
	public Object Visit(Visitor visitor) { return visitor.Visit(this); }
	
	public AssignStatement(Interval interval, Location to, Expression what)
	{
		super(interval);
		GiveBirth(to);
		GiveBirth(what);
		_to = to;
		_what = what;
	}
	
	public Location GetWhereTo()	{ return _to; }
	public Expression GetWhat()		{ return _what; }

}
